package com.workManager.mapper;

import com.workManager.pojo.TdRoleFunction;
import com.workManager.pojo.TdRoleFunctionExample;
import java.util.List;
import java.util.Map;

import com.workManager.vo.RoleFunctionVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdRoleFunctionMapper {
    int countByExample(TdRoleFunctionExample example);

    int deleteByExample(TdRoleFunctionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TdRoleFunction record);

    int insertSelective(TdRoleFunction record);

    List<TdRoleFunction> selectByExample(TdRoleFunctionExample example);

    TdRoleFunction selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TdRoleFunction record, @Param("example") TdRoleFunctionExample example);

    int updateByExample(@Param("record") TdRoleFunction record, @Param("example") TdRoleFunctionExample example);

    int updateByPrimaryKeySelective(TdRoleFunction record);

    int updateByPrimaryKey(TdRoleFunction record);

    int deleteByRoleId(@Param("roleId") Integer roleId);

    List<RoleFunctionVo> queryRoleFunction(@Param("cm") Map<String,Object> map);

    List<String> queryRoleFunctionId(@Param("roleId") String roleId);

    List<String> queryRoleFunctionCode(@Param("roleId") String roleId);

    int insertRoleFunctionBatch(@Param("list") List<Map<String,Object>> list);

    List<String> getRoleFunctionCodeByUserId(@Param("userId") Integer userId);
}